package com.service;

import com.dao.BaseAdminDao;
import com.dao.impl.AdminDaoMysql;

import java.util.Date;

public class AdminService {
    private BaseAdminDao dao = new AdminDaoMysql();

    public void updateLoginTime(String username, Date date, String ip) {
        dao.updateLoginTime(username, date, ip);
    }

    public boolean login(String username, String password) {
        return dao.login(username, password);
    }
}
